{% extends "base.html" %}
{% load i18n imagequery_tags %}

{% block title %}{% trans "Galerie erstellen | fha-django-gallery" %}{% endblock %}

{% url gallery_detail slug=gallery.slug as gallery_detail %}
{% url gallery_edit_info slug=gallery.slug as gallery_edit %}

{% block breadcrumbs %}
    {% blocktrans with name=gallery.name %}
        Sie befinden sich hier: <a href="/">fha-django-gallery</a> &raquo; 
        <a href="/galerie/">Galerie</a> &raquo;
        <a href="{{ gallery_detail }}">{{ name }}</a> &raquo;
        <a href="{{ gallery_edit }}">Bearbeiten</a>
    {% endblocktrans %}
{% endblock %}

{% block content %}
    <h2>{% trans "Galerie bearbeiten" %}</h2>
    <form action="{% url gallery_edit_info slug=gallery.slug %}" method="POST" enctype="multipart/form-data">
        {% csrf_token %}
        {% include "common/forms/display_form.html" %}
        {% with "Speichern" as submit_text %}
            {% include "common/forms/display_form_submit.html" %}
        {% endwith %}
    </form>
{% endblock %}
